<?
include('librerias.php');
$idperfil = $_REQUEST['idperfil'];
$subsection = $_REQUEST['subsection']; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Autos Y Refacciones</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<?=fancyscript2();?>
</head>
<body>
<?=menu_general();?>
<table width="1100" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr><td colspan="5" align="right">
	<tr>
	  <td width="143" style="vertical-align:top">&nbsp;</td>
	  <td width="220" style="vertical-align:top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="140" style="vertical-align:top" align="left"><img src="logos/<?=buscamilogo($idperfil);?>" width="190" height="140" /></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
        <!-- <tr><td><img src="imagenes/perfil_horizontal.jpg" width="200" height="1" /></td></tr>
                    <tr><td height="26" class="gray12" style="vertical-align:bottom">Clientes <span class="masgris"><strong>250</strong></span></td></tr>
                    <tr><td height="26" class="black12" style="vertical-align:top">¿Nos recomiendas? <a href="?recomiendo=Si">Si</a>-<a href="?recomiendo=No">No</a></td></tr> -->
        <tr>
          <td><img src="imagenes/perfil_horizontal.jpg" width="200" height="1" /></td>
        </tr>
      </table>
	    <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td class="perfilsubtit">&nbsp;</td>
          </tr>
          <tr>
            <td class="perfilsubtit">Anunciantes</td>
          </tr>
          <tr>
            <td class="style2" style="vertical-align:middle"><a href="perfil.php?idperfil=19" class="style2"> Radiadores Frontera</a><br /></td>
          </tr>
          <tr>
            <td class="black12" style="vertical-align:middle">Distribuidores de radiadores más grande del norte de México.</td>
          </tr>
          <tr>
            <td class="black12" style="vertical-align:middle">&nbsp;</td>
          </tr>
          <tr>
            <td class="style2" style="vertical-align:middle"><a href="perfil.php?idperfil=16" class="style2"> Inyet Fuel Injection</a><br /></td>
          </tr>
          <tr>
            <td class="black12" style="vertical-align:middle"><span class="black12" style="vertical-align:middle">Asesoría, diagnóstico y reparaciones automotrices</span></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td><a href="contactanos.php">¿Quieres aparecer aquí?</a></td>
          </tr>
          <tr>
            <td align="center">&nbsp;</td>
          </tr>
        </table></td>
	  <td style="vertical-align:top"><img src="imagenes/perfil_lateral.jpg" width="1" height="500" /></td>
	  <td style="vertical-align:top">
	  			<table width="100%" border="0" cellspacing="0" cellpadding="0">
            	<?=pglobal($idperfil);?>
				<tr><td colspan="2" align="center"><img src="imagenes/linea_down.jpg" width="650" height="1" /></td></tr>
	  </table> 
				<?
				# Master Switch para pantallas generales
			  	switch($subsection)
					{
					case 'informacion':
						echo informacion_perfil($idperfil);
					break;
					case 'promocion':
						echo promocion_perfil($idperfil);
					break;
					case 'autos':
						echo autos_perfil($idperfil,$_REQUEST['page']);
					break;
					case 'refacciones':
						echo refacciones_perfil($idperfil);
					break;
					default:
						 echo informacion_perfil($idperfil);
					break;
					} ?>				</td>
	  <td style="vertical-align:top"><img src="imagenes/perfil_lateral.jpg" width="1" height="500" /></td>
  </tr>
</table>
<div class="alfinal" style="width:100%;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td class="gray12" height="30">&copy;&nbsp;autosyrefacciones.com 2011.</td>
    </tr>
</table>
</div>
</body>
</html>